<?xml version="1.0" encoding="utf-8"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

  <%@include file="loading.jsp" %>	
 	<s:actionerror cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0pt 0.7em;"/>  	 
  	<s:actionmessage cssClass="ui-state-highlight ui-corner-all" cssStyle="padding: 0pt 0.7em; margin-top: 20px;"/>
		
  
  	<fieldset class="ui-widget ui-widget-content ui-corner-all" style="margin: 10px">
  	
	<legend class="ui-state-default ui-corner-all">&nbsp;&nbsp;&nbsp;Mural&nbsp;&nbsp;&nbsp;</legend>
  	 		<br>
  	 		<sj:div effect="slide" effectDuration="600">	
     <table style="align: left;  width: 100%" >    
     	<thead align="right">
     	<td colspan="6">
     		<table style="align: right;">
  		<tr>
  			<!-- <td>
  				<label style="font-size: 1"> Exibindo Registros de <s:property value="pageatual*pagesize"/> a <s:property value="(pageatual+1)*pagesize"/></label>
  			</td>-->
  			<s:if test="%{!bloquearRecursos}">
  			<td>
  				
				<sj:a onclick="divSumir();" href="mantermural!editAviso?idEstande=%{idEstande}&idCentro=%{idCentro}" targets="main" indicator="indicator"><span class="ui-icon ui-icon-newwin" title="Adicionar Mural."/></sj:a>
  			</td>
  			</s:if>
  		
  			<s:if test="%{pageatual>0}">
  			<td>
			
			<sj:a href="listarmural!priorPage?pageatual=%{pageatual}&idCentro=%{idCentro}&idEstande=%{idEstande}" targets="listamural" indicator="gridIndicator"><span class="ui-icon ui-icon-seek-prev"/></sj:a>
  			</td>
  			</s:if>
  			
  			<td>
 					
			<sj:a href="listarmural!nextPage?pageatual=%{pageatual}&idCentro=%{idCentro}&idEstande=%{idEstande}" targets="listamural" indicator="gridIndicator"><span class="ui-icon ui-icon-seek-next"/></sj:a>
  			</td>
  			
  			
  			<td>
  				<img src="images/indicator2.gif" id="gridIndicator" alt="Recarregando Usuários" style="display: none"/>
  			</td>
  		</tr>
  	</table>
  		</td>
     	</thead>
     	<tr>  
     		<td>
     			
     		</td>   		
     		<td>
     			<label>Texto</label>
     		</td>
     		
     		<td>
     		</td>
     	
     	</tr>
     		<s:set value="lista" name="listagem" />	
     		<s:iterator value="listagem" var="aviso">
     			<tr>
     				<td align="center">
     					<span class="ui-icon ui-icon-note" />
     				</td>     				
     				<td>
     					<s:property value="texto"/>
     				</td>
     				
     				<td align="center">
  							
							<sj:a onclick="divSumir();" href="mantermural!editAviso?idEstande=%{idEstande}&idCentro=%{idCentro}&idAvisoMural=%{id}" targets="main" indicator="indicator"><table><tr title="Editar e excluir Estande"><td><span class="ui-icon ui-icon-pencil"/></td><td><span class="ui-icon ui-icon-trash"/></td></tr></table></sj:a>
     				</td>
     				
     			</tr>
     		</s:iterator>  			
  		</table>
		</sj:div>
	</fieldset>	
	
 
